package com.express.emnus;

public enum GOODSTYPE {

    YLQJ(1, "医疗器械"),
    BP(2, "备品"),
    QT(0, "其他");

    private Integer type;
    private String description;

    GOODSTYPE(Integer type, String description) {
        this.type = type;
        this.description = description;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public static String valueOf(Integer type) {
        for (GOODSTYPE goodstype : GOODSTYPE.values()) {
            if (goodstype.getType().equals(type)) {
                return goodstype.getDescription();
            }
        }
        return "";
    }
}